package jy.hibernate.beans;

import java.util.Date;

/**
 * Sum_porter entity
 * @author tingzi
 *
 */
public class Sum_porter implements java.io.Serializable{
	private static final long serialVersionUID = -3173733901691214516L;
   //Fields 
	private Integer sum_id;//自增长id
	private Porter_info porter_info;//搬运工

	private Date year_month=new Date("1870-00-00");//时间 
	private Integer number=0;//数量
	public Integer getSum_id() {
		return sum_id;
	}
	@Override
	public String toString() {
		
		return "porter_info:"+porter_info.getP_number()+"/tyear_month:"+year_month
		       +"/tnumber:"+number;
	}
	public Sum_porter(Porter_info porter_info, Date year_month, Integer number) {
		super();
		this.porter_info = porter_info;
		this.year_month = year_month;
		this.number = number;
	}
	public void setSum_id(Integer sum_id) {
		this.sum_id = sum_id;
	}
	public Porter_info getPorter_info() {
		return porter_info;
	}
	public void setPorter_info(Porter_info porter_info) {
		this.porter_info = porter_info;
	}
	public Date getYear_month() {
		return year_month;
	}
	public void setYear_month(Date year_month) {
		this.year_month = year_month;
	}
	public Integer getNumber() {
		return number;
	}
	public void setNumber(Integer number) {
		this.number = number;
	}

}
